﻿/*----------------------------------------------------
 * Author : Tharinduni Udugamasuriya
 * Date : July 2014
 * ICommonValidations : Interface of CommonValidations
 ---------------------------------------------------*/

using System.Collections.Generic;
using System.Windows.Forms;

namespace DSPL.Contracts.Interfaces
{
    public interface ICommonValidations
    {
        bool ValidateEmptyOrIndexFormControl(List<Control> contList);

        object ValidateSqlKeywords(object parameter, string dataType);

        bool CheckMasterRecordDuplicates(string tableName, IColumnWithValue[] UniqueKeyList);

        bool CheckValidyOfDeletion(string tableName, int primaryKey,string primaryFieldName, string ingnoreTableList);

        bool UserWiseLocationValidation(object locationCode);


    }
}
